<?php
class HomeController extends MController {
    public function indexAction() {
        $posts = Post::find('all',array('order'=>'created_at DESC'));
        $this->render('index',array('posts'=>$posts));
    }
}
?>